/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.book.entity.in;

import com.thinkgem.jeesite.modules.base.entity.book.BaseBook;
import com.thinkgem.jeesite.modules.base.entity.card.BaseCard;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 借阅管理_退还生成Entity
 * @author 呆子
 * @version 2020-02-22
 */
public class BookIn extends DataEntity<BookIn> {
	
	private static final long serialVersionUID = 1L;
	private String inCardId;		// 借阅证ID
	private String inBookId;		// 退还书籍ID
    private String bookOutId;       //借阅书籍记录的ID
	private Integer inValid;		// 有效性验证
	private BaseCard baseCard;      // 借阅证信息
	private BaseBook baseBook;      // 借阅书籍信息


	public BookIn() {
		super();
	}

	public BookIn(String id){
		super(id);
	}

    public BaseCard getBaseCard() {
        return baseCard;
    }

    public void setBaseCard(BaseCard baseCard) {
        this.baseCard = baseCard;
    }

    public BaseBook getBaseBook() {
        return baseBook;
    }

    public void setBaseBook(BaseBook baseBook) {
        this.baseBook = baseBook;
    }

	@Length(min=1, max=64, message="借阅证ID长度必须介于 1 和 64 之间")
	public String getInCardId() {
		return inCardId;
	}

	public void setInCardId(String inCardId) {
		this.inCardId = inCardId;
	}
	
	@Length(min=1, max=64, message="退还书籍ID长度必须介于 1 和 64 之间")
	public String getInBookId() {
		return inBookId;
	}

	public void setInBookId(String inBookId) {
		this.inBookId = inBookId;
	}

    @Length(min=1, max=64, message="借阅书籍记录ID长度必须介于 1 和 64 之间")
    public String getBookOutId() {
        return bookOutId;
    }

    public void setBookOutId(String bookOutId) {
        this.bookOutId = bookOutId;
    }

    @NotNull(message="有效性验证不能为空")
	public Integer getInValid() {
		return inValid;
	}

	public void setInValid(Integer inValid) {
		this.inValid = inValid;
	}

}